Conversation
Replace the single-rendered Now block with a carousel so multiple recent items (articles, projects, etc.) can share the featured slot. Progressive enhancement: without JS, all items stack as before; with JS, one item is visible at a time, navigated via < > arrows and clickable dots. - Entries display in reverse YAML order so new items append at the bottom and show first - Controls sit above the slide so they stay anchored when the active item's height changes - Optional date field rendered alongside type - Framed container (subtle border + off-white bg) marks the section as featured Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR turns the homepage “Now” section into a progressively-enhanced carousel: without JavaScript it renders as a stacked list, and with JavaScript it becomes a single-slide view with previous/next controls and dot indicators.
Changes:
- Update
index.mdto render Now entries in reverse order, add carousel markup/controls, and optionally display an entry date. - Add a small JS controller (
now-carousel.js) to manage active slide/dot state and wraparound navigation. - Extend site CSS to style the framed “featured” container and the carousel controls/dots.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
index.md |
Replaces the Now list with carousel markup (controls + slides), reverses item order, and adds optional date rendering. |
assets/js/now-carousel.js |
Implements the JS behavior (adds .js-enabled, toggles .is-active, updates aria-current). |
assets/css/style.css |
Adds framing + carousel styles and renames the meta class from .now-type to .now-meta. |
_data/now.yml |
Updates metadata (type, new date) and adds an additional Now entry. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Addresses Copilot review feedback: the script was fetched unconditionally but early-returned for 0–1 entries. Gate it behind the same size>1 check that guards the controls. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.js-enabledclass and carousel behavior_data/now.yml, they show first)datefield alongsidetypein meta line (e.g.article · 2026-04-08)Notes
now.ymlhas more than one entryarticle) is a worthwhile follow-up to make the "featured" framing earn its keepTest plan
🤖 Generated with Claude Code